<?php global $base_url; ?>
<!-- Start Top Navigation -->
<?php if(!empty($top_left) || !empty($top_right)):?>
<div class="top_nav">

    <div class="container">
        <div class="row-fluid">
            <div class="pull-left">
                <?php print $top_left;?>
            </div>   
            <div class="pull-right">
                <?php print $top_right;?>
            </div>  
        </div>
    </div>

</div>
<?php endif;?>

<!-- End of Top Navigation -->


<!-- Header BEGIN -->

<div class="header_wrapper <?php print $header_class;?> no-transparent ">
    <header id="header" class="<?php print $sticky_class;?>">
        <div class="container">
            <div class="row-fluid">
                <div class="span12">

                    <!-- Logo -->
                    <div id="logo" class="">
                        <a href="<?php print $base_url;?>">
                            <img src="<?php print $logo;?>" alt=''/>
                        </a>
                    </div>
                    <!-- #logo END -->

                    <?php if(!empty($search)):?>
                    <div class="after_logo">
                        <!-- Search -->

                        <div class="header_search">
                            <div class="right_search">
                                <i class="fa fa-search"></i>
                            </div>
                            <div class="right_search_container">
                                <?php print render($search);?>
                            </div>
                        </div>
                        <!-- End Search-->
                    </div>
                    <?php endif;?>

                    <!-- Show for all header expect header 4 -->


                    <div id="navigation" class="nav_top pull-right ">
                        <nav>
                            <?php print render($menu_expanded); ?>
                        </nav>
                    </div>
                    <!-- #navigation -->


                    <!-- End custom menu here -->
                    <a href="#" class="mobile_small_menu open"></a>
                </div>
            </div>


        </div>


    </header>
    <?php if(!empty($bottom_left) || !empty($bottom_right)):?>
    <div class="header_bar">
        <div class="container">
            <div class="row-fluid">
                <div class="span12">
                    <div class="pull-left">
                        <?php print $bottom_left;?>
                    </div>  
                    <div class="pull-right">
                        <?php print $bottom_right;?>
                    </div>  
                </div>
            </div>
        </div>
    </div>
    <?php endif;?>

    <div class="header_shadow"><span class=""></span>
    </div>
    <!-- Responsive Menu -->
    <div class="menu-small">
        <?php print render($menu_mobile); ?>
    </div>
    <!-- End Responsive Menu -->
</div>
